package aimozg.joglfw.bones;

import java.util.HashMap;

/**
* Created by IntelliJ IDEA.
* User: aimozg
* Date: 03.01.11
* Time: 22:59
*/
public class SkeletonAnimation {
	private final HashMap<String, BoneAnimation> animations = new HashMap<String, BoneAnimation>();

	public SkeletonAnimation(BoneAnimation... animations) {
		for (BoneAnimation animation : animations) {
			this.animations.put(animation.name(), animation);
		}
	}

	public BoneAnimation get(String name) {
		return animations.get(name);
	}
}
